package com.ls.pattern.singleton.thread;

import com.ls.pattern.singleton.RegisterSingleton;

/**
 * 注册式单例多线程测试
 */
public class RegisterThreadExecutor implements Runnable {

    @Override
    public void run() {
        Object bean = RegisterSingleton.getBean("com.ls.pattern.singleton.model.RegisterModel");
        System.out.println(Thread.currentThread().getName() + ":" + bean);
    }
}
